package com.stagewebserver.webserver.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.stagewebserver.webserver.mapper.DemandFormatMapper;
import com.stagecommon.common.pojo.DemandFormat;
import com.stagecommon.common.pojo.RespBean;
import com.stagewebserver.webserver.service.DemandFormatService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: yxl
 * @since: 2022-04-24
 **/
@Service
@Slf4j
public class DemandFormatServiceImpl extends ServiceImpl<DemandFormatMapper, DemandFormat> implements DemandFormatService {

    @Autowired
    private DemandFormatMapper demandFormatMapper;

    @Override
    public RespBean<List<DemandFormat>> selectFormatByType(Byte type) {
        return RespBean.operationSuccess("查询成功",200, demandFormatMapper.selectFormatByType(type));
    }

}
